--[[function pickup(ply,wep)
	if ply:IsAdmin() then
		return
	else
		ply:PrintMessage( HUD_PRINTTALK, "Sorry you can't Pickup Weapons." )
		return true
	end
end
hook.Add("PlayerCanPickupWeapon", "ahrefpickup", pickup)]]

function vehicle( ply, ent, role )
	if ent:IsConstrained( ) or ply:IsAdmin() then
		return
	end
		ply:PrintMessage( HUD_PRINTTALK, "Build a vehicle before your use it." )
		return false
end
hook.Add("CanPlayerEnterVehicle", "ahrefvehicle", vehicle)


--[[local function spamP( ply, mdl )
	if string.find(string.lower(mdl),"zeikjt") then
		--MsgAll("holograms")
		return
	end
	if ply:IsAdmin() then 
		--MsgAll("admin")
		return 
	end
	local tool = ply:GetTool() or nil
	--MsgAll(tool.Name)
	if tool then
		if tool.Name == "adv_duplicator" then 
			--MsgAll("duplicator")
			return 
		end
	end
	if mdl == ply.previous then
		if CurTime() <= ply.spamT then
			local a = math.Round(ply.spamT - CurTime())
			ply:PrintMessage( HUD_PRINTTALK, "Spawn a different prop please. "..a.."(s) until you can spawn this prop again.")
			return false
		end
	end
	ply.previous = mdl
	ply.spamT = CurTime() + 2
	return
end
hook.Add( "PlayerSpawnProp", "ahrefSpamPrevention", spamP )]]
